home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2006 December / PCWDEC06.iso / Software / Freeware / Partition Logic 0.63 / partlogic-0.63.iso / system / headers / sys / text.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-08-22  |  2.0 KB  |  63 lines

  1. // 
  2. //  Visopsys
  3. //  Copyright (C) 1998-2006 J. Andrew McLaughlin
  4. //  
  5. //  This library is free software; you can redistribute it and/or modify it
  6. //  under the terms of the GNU Lesser General Public License as published by
  7. //  the Free Software Foundation; either version 2.1 of the License, or (at
  8. //  your option) any later version.
  9. //
  10. //  This library is distributed in the hope that it will be useful, but
  11. //  WITHOUT ANY WARRANTY; without even the implied warranty of
  12. //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser
  13. //  General Public License for more details.
  14. //
  15. //  You should have received a copy of the GNU Lesser General Public License
  16. //  along with this library; if not, write to the Free Software Foundation,
  17. //  Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  18. //
  19. //  text.h
  20. //
  21.  
  22. // This file contains definitions and structures for using and manipulating
  23. // text in Visopsys.
  24.  
  25. #if !defined(_TEXT_H)
  26.  
  27. // Definitions
  28. #define TEXT_STREAMSIZE               32768
  29. #define TEXT_DEFAULT_TAB              8
  30. #define TEXT_DEFAULT_SCROLLBACKLINES  256
  31.  
  32. // Colours for the text console
  33. #define TEXT_COLOR_BLACK              0
  34. #define TEXT_COLOR_BLUE               1
  35. #define TEXT_COLOR_GREEN              2
  36. #define TEXT_COLOR_CYAN               3
  37. #define TEXT_COLOR_RED                4
  38. #define TEXT_COLOR_MAGENTA            5
  39. #define TEXT_COLOR_BROWN              6
  40. #define TEXT_COLOR_LIGHTGREY          7
  41. #define TEXT_COLOR_DARKGREY           8
  42. #define TEXT_COLOR_LIGHTBLUE          9
  43. #define TEXT_COLOR_LIGHTGREEN         10
  44. #define TEXT_COLOR_LIGHTCYAN          11
  45. #define TEXT_COLOR_LIGHTRED           12
  46. #define TEXT_COLOR_LIGHTMAGENTA       13
  47. #define TEXT_COLOR_YELLOW             14
  48. #define TEXT_COLOR_WHITE              15
  49.  
  50. #define TEXT_DEFAULT_FOREGROUND       TEXT_COLOR_LIGHTGREY
  51. #define TEXT_DEFAULT_BACKGROUND       TEXT_COLOR_BLUE
  52. #define TEXT_DEFAULT_ERRORFOREGROUND  TEXT_COLOR_BROWN
  53.  
  54. typedef struct {
  55.   int column;
  56.   int row;
  57.   unsigned char *data;
  58.  
  59. } textScreen;
  60.  
  61. #define _TEXT_H
  62. #endif
  63.